package com.tbit.uqbike.client.controller;

import com.tbit.uqbike.client.pojo.Result;
import com.tbit.uqbike.client.service.StudyGuideService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * <p>
 * 新用户指南 前端控制器
 * </p>
 *
 * @author zhangtianyou
 * @since 2024-11-14
 */
@RestController
@RequestMapping("/studyGuide")
@Validated
public class StudyGuideController {

    @Autowired
    private StudyGuideService studyGuideService;

    /**
     * 根据品牌id和用户id查询用户是否需要观看新用户指南
     */
    @GetMapping("/checkUserIsStudy")
    public Result<Map<String, Object>> checkUserIsStudy(@NotNull Integer accountId, @NotNull Integer userId) {
        return studyGuideService.checkUserIsStudy(accountId,userId);
    }

}
